package com.platform.service;

import com.platform.domain.model.Department;

import java.util.List;

/**
* Department
*
* User: wangyang
* DateTime: 2012-10-08 16:11:58
*
*/
public interface DepartmentService {

    /**
    *
    * 根据主键查询Department对象
    *
    * @param deptId
    * @return Department对象
    */
    Department selectByPrimaryKey(String deptId) throws Exception;

    /**
    *
    * 根据查询条件查询符合条件的Department对象
    *
    * @param department
    * @return 符合条件的Department对象List
    */
    List<Department> select(Department department) throws Exception;

    /**
    *
    * 根据主键删除Department对象
    *
    * @param deptId
    * @return 影响条件数
    */
    int deleteByPrimaryKey(String deptId) throws Exception;

    /**
    *
    * 根据条件删除符合条件的Department对象
    *
    * @param department
    * @return 影响条件数
    */
    int delete(Department department) throws Exception;

    /**
    *
    * 插入Department对象
    *
    * @param department
    * @return 影响条件数
    */
    int insert(Department department) throws Exception;

    /**
    *
    * 更新Department对象
    *
    * @param department
    * @return 影响条件数
    */
    int update(Department department) throws Exception;

}
